package vip.xiaonuo.core.indexMenu.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class MenuIndexAdd {

    private Integer id;
    @ApiModelProperty(value = "菜单编码", required = true, position = 1)
    @NotBlank(message = "编码不能为空")
    private String key;

    @ApiModelProperty(value = "菜单名称", required = true, position = 2)
    @NotBlank(message = "菜单名称不能为空")
    private String name;

    @ApiModelProperty(value = "父级菜单id", required = true, position = 3)
    @NotNull(message = "父级菜单不能为空")
    private Integer parentId;

    @ApiModelProperty(value = "排序值", required = true, position = 4)
    @NotNull(message = "排序值不能为空")
    private Integer sort;

    @ApiModelProperty(value = "层级", required = true, position = 5)
    @NotNull(message = "层级不能为空")
    private Integer level;

}
